<h2 class="title">设备报废</h2>
<form action="index.php" method="GET">
<table class="tb_term" width="100%">
<tr>
	<td  class="tr_td_width01 alignright">报废单据编号</td>
	<td class="tr_td_width03"><input type="text" class="input_select_stand txt-normal" name="scrapped_no" value="{%$smarty.get.scrapped_no%}" class="txt-normal"/></td>
	<td  class="tr_td_width02 alignright">经办人员</td>
	<td>
		<select name="admin_user_id" class="select_select  txt-normal">
			<option value="0"> -- 请选择 -- </option>
			{%html_options options=$admin_info selected=$smarty.get.admin_user_id %}
		</select>
		<input type="hidden" name="c" value="{%$smarty.get.c%}">
	</td>
</tr>
<tr>	
	<td  class="alignright">经办日期</td>
	<td colspan="3">
		<input class="input_date_select txt-normal" type=text name="mc_mend_time_start" id="mc_mend_time_start"  value='{%$smarty.get.mc_mend_time_start%}' readonly>
		<script>
		Calendar.setup({
			inputField     :    "mc_mend_time_start",   // id of the input field
			ifFormat       :    "%Y-%m-%d",       // format of the input field
			showsTime      :    false,
			timeFormat     :    "24"
		});
		</script>
		<label class="label01">至</label>
		<input class="input_date_select txt-normal" type=text name="mc_mend_time_end" id="mc_mend_time_end"  value='{%$smarty.get.mc_mend_time_end%}' readonly>
		<script>
		Calendar.setup({
			inputField     :    "mc_mend_time_end",   // id of the input field
			ifFormat       :    "%Y-%m-%d",       // format of the input field
			showsTime      :    false,
			timeFormat     :    "24"
		});
		</script>
	</td>
</tr>
</table>
<p class="btn_right">
	<button type="submit" class="b-default" hidefocus="true"><span><em>查询</em></span></button>
	<button type="button" class="b-default" hidefocus="true" onclick="window.location.href='index.php?c=zy_scrapped&m=add'"><span><em>添加</em></span></button>
</p>
</form>

<h2 class="title">结果显示</h2>
<table class="tb_list" width="100%">
<tr class="title">
	<td class="list_td_zw_10">报废单据编号</td>
	<td class="list_td_zw_04">经办人员</td>
	<td class="list_date">经办日期</td>
	<td>报废单据备注</td>
	<td class="list_td_zw_opt02">操作</td>
</tr>
{%foreach from=$arr item=arr_item%}
<tr>
	<td>{%$arr_item.scrapped_no%}</td>
	<td>{%$admin_info[$arr_item.admin_user_id]%}</td>
	<td>{%$arr_item.mc_mend_time|date_format:"%Y-%m-%d"%}</td>
	<td class="alignleft" title="{%$arr_item.scrapped_info%}">{%cut_str str=$arr_item.scrapped_info sublen=20%}</td>
	<td>
		<a href='index.php?c=zy_scrapped&m=browse&scrapped_id={%$arr_item.scrapped_id%}'>详细</a>&nbsp;
		<a href='index.php?c=zy_scrapped&m=edit&scrapped_id={%$arr_item.scrapped_id%}'>修改</a>
	</td>
</tr>
{%foreachelse%}
<tr><td colspan="5">暂无内容</td></tr>
{%/foreach%}
</table>

{%if $arr_item%}
<div class="pagenation aligncenter">
	<div id="pager">{%$page_footer%}</div>
</div>
{%/if%}